{extend name="index/index" /}
{block name="main"}
 <div class="content-wrapper">
      <div class="page-title">
        <div>
          <h1><i class="fa fa-th-list"></i>节点列表</h1>
          <p>Table to display analytical data effectively</p>
        </div>
        <div>
          <ul class="breadcrumb side">
            <li><i class="fa fa-home fa-lg"></i></li>
            <li>Tables</li>
            <li class="active"><a href="#">Data Table</a></li>
          </ul>
        </div>
      </div>
      <div class="row">
        <div class="col-md-12 pa">
        <a class='btn btn-info' href='/admin/nodes/create'>新增节点</a>
        </div>
      </div>
      <div class="row">
        <div class="col-md-12">
          <div class="card">
            <div class="card-body">
              <table class="table table-hover table-bordered" id="sampleTable">
                <thead>
                  <tr>
                      <th>id</th>
                      <th>节点名称</th>
                      <th>所属控制器</th>
                      <th>节点方法</th>
                      <th>状态</th>
                      <th width='200'>操作</th>
                  </tr>
                </thead>
                <tbody>
                {volist name="list" id="v"}
                    <tr class="uid{$v.id}">
                        <td>{$v.id}</td>
                        <td><strong>{$v.name}</strong></td>
                        <td>{$v.mname }</td>
                        <td>{$v.aname }</td>
                        <td>
                            <div class="toggle lg">
                                <label>
                                  <input type="checkbox" class='userstatus' {$v.status?'checked':''} ><span class="button-indecator"></span>
                                </label>
                            </div>
                        </td>
                         <td>
                            <a class="btn-sm btn-danger" onclick='del("{$v.id}")' ><i
                            class="fa fa-trash-o fa-fw"></i></a>
                            <a class="btn-sm btn-success" href='/admin/nodes/edit/id/{$v.id}'><i
                            class="fa fa-edit"></i></a>
                            <a  data-toggle="tooltip" title="详情" class="btn-sm btn-info" href='/admin/nodes/getinfo/id/{$v.id}'>
                              <i class="fa fa-file-text-o fa-fw"></i></a>
                        </td>
                    </tr>

                {/volist}
                </tbody>
              </table>
            </div>
          </div>
        </div>
      </div>
    </div>
<script>


</script>

{/block}
